public class Test {
    public static void func() throws ArrayIndexOutOfBoundsException{
        int[] a={1,2,3};
        System.out.println(a[10]);
    }
    public static void main(String[] args)  throws ArrayIndexOutOfBoundsException{
        func();
    }
}
